/* 
 * Copyright [2018] [Alex/libo(liboware@gmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.infodb.user.bean.po;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.hyts.infodb.bean.po.LongPO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import springfox.documentation.annotations.ApiIgnore;

/** 
 * @author LiBo/Alex
 * @version V1.0 
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@ApiModel(description="用户实体")
@Table(name="TBL_USER")
public final class UserPO extends LongPO {


    @ApiModelProperty(value="用户名称",dataType="Integer")
    @Column(name="USER_NAME",length = 64,unique=true,nullable=true)
    private String userName;

    @ApiModelProperty("真实姓名")
    @Column(name="REAL_NAME")
    private String realName;

    @ApiModelProperty("密码")
    @Column(name="PASSWORD")
    private String password;

    @ApiModelProperty(value="密码",hidden=true)
    @Column(name="ENCRYPT_PASSWORD")
    private String encryptPassword;
    
    @Column(name="SALT")
    private String salt;
    
    @Column(name="STATE")
    private Byte state;
    
}
